'use strict';
class BizConstant{
    static PROTOCOL:String  = "http";
    static IP:String        = "192.168.1.28";
    static PORT:String      = "9020";


    /** 获取短信验证码 */
    static GET_CONFIRM_CODE             = BizConstant.PROTOCOL + "://" + BizConstant.IP + ":" + BizConstant.PORT + "/app/user/sendValidateMessage";

    /** 注册登录 */
    static POST_VERIFY_LOGIN            = BizConstant.PROTOCOL + "://" + BizConstant.IP + ":" + BizConstant.PORT + "/app/user/smsLogin";

    /** 查询我的角色 */
    static GET_ROLE                     = BizConstant.PROTOCOL + "://" + BizConstant.IP + ":" + BizConstant.PORT + "/app/user/getRoles";

    /** 查询我指定角色下负责的舱体 */
    static GET_CABIN                    = BizConstant.PROTOCOL + "://" + BizConstant.IP + ":" + BizConstant.PORT + "/app/user/cangList";

    /** 查询基于舱体的运动记录 */
    static GET_EXERCISE_RECORD_CABIN    = BizConstant.PROTOCOL + "://" + BizConstant.IP + ":" + BizConstant.PORT + "/app/sport/record/getRecordByCangId";

    /** 查询基于人的运动记录 */
    static GET_EXERCISE_RECORD_PERSON   = BizConstant.PROTOCOL + "://" + BizConstant.IP + ":" + BizConstant.PORT + "/app/sport/record/getRecordByUserId";

    /** 开门 */
    static GET_OPEN_DOOR                = BizConstant.PROTOCOL + "://" + BizConstant.IP + ":" + BizConstant.PORT + "/app/plat3/openDoor";

    /** 开电 */
    static GET_POWER_ON                 = BizConstant.PROTOCOL + "://" + BizConstant.IP + ":" + BizConstant.PORT + "/app/plat3/powerControl?action=true";

    /** 关电 */
    static GET_POWER_OFF                = BizConstant.PROTOCOL + "://" + BizConstant.IP + ":" + BizConstant.PORT + "/app/plat3/powerControl?action=false";

    /** 结束运动 */
    static GET_END_SPORT                = BizConstant.PROTOCOL + "://" + BizConstant.IP + ":" + BizConstant.PORT + "/app/sport/record/finishRecord";

    /** 撤销订单 */
    static GET_CANCEL_ORDER             = BizConstant.PROTOCOL + "://" + BizConstant.IP + ":" + BizConstant.PORT + "/app/sport/record/revokeRecord";

    /** 虚拟充值 */
    static GET_VICE_CHARGE              = BizConstant.PROTOCOL + "://" + BizConstant.IP + ":" + BizConstant.PORT + "/app/sport/record/revokeRecord";

    /** 查询舱体报表列表 */
    static GET_CABIN_REPORT             = "https" + "://" + "api.ga-qu.com" + "/report/reportCang/list";



    /** 已撤销 */
    static EXERCISE_RECORD_STATUS_INVAILDE  = -1;
    /** 已结束运动待支付 */
    static EXERCISE_RECORD_STATUS_OVER      = 0;
    /** 已支付 */
    static EXERCISE_RECORD_STATUS_COMPLETE  = 1;
    /** 正在运动 */
    static EXERCISE_RECORD_STATUS_ING       = 2;


}

module.exports = BizConstant;
